public class Sub extends Base {
    public int z;

    public Sub(int x, int y, int z) {
        super(x, y);
        this.z = 3;
    }

        public int getZ () {
            return z=3;
        }
        public  void  calculate () {
        System.out.println(super.getX() * super.getY() * this.getZ());
    }


    public static void main(String[] args) {
        Sub sub = new Sub(10, 20, 30);
        sub.calculate();
    }
}
